﻿@model BK.Model.CommonExpense
@{
	ViewBag.Title = "Edit";
	Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Save", "CommonExpenses"))
{
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>CommonExpense</legend>
		<div class="editor-label">
			@Html.LabelFor(model => model.Date)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Date)
			@Html.ValidationMessageFor(model => model.Date)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Currency)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Currency)
			@Html.ValidationMessageFor(model => model.Currency)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Account)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Account)
			@Html.ValidationMessageFor(model => model.Account)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Category)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Category)
			@Html.ValidationMessageFor(model => model.Category)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Project)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Project)
			@Html.ValidationMessageFor(model => model.Project)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Note)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Note)
			@Html.ValidationMessageFor(model => model.Note)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Author)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Author)
			@Html.ValidationMessageFor(model => model.Author)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Amount)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Amount)
			@Html.ValidationMessageFor(model => model.Amount)
		</div>
		@Html.HiddenFor(model => model.Id)
		<p>
			<input type="submit" value="Save" />
		</p>
	</fieldset>
}
<div>
	@Html.ActionLink("Back to List", "Index")
</div>
